import request from '@/utils/request'

// 查询告警屏蔽设置列表
export function listShield(query) {
  return request({
    url: '/biz/shield/list',
    method: 'get',
    params: query
  })
}

// 查询告警屏蔽设置详细
export function getShield(id) {
  return request({
    url: '/biz/shield/' + id,
    method: 'get'
  })
}

// 新增告警屏蔽设置
export function addShield(data) {
  return request({
    url: '/biz/shield',
    method: 'post',
    data: data
  })
}

// 修改告警屏蔽设置
export function updateShield(data) {
  return request({
    url: '/biz/shield',
    method: 'put',
    data: data
  })
}

// 删除告警屏蔽设置
export function delShield(id) {
  return request({
    url: '/biz/shield/' + id,
    method: 'delete'
  })
}

// 导出告警屏蔽设置
export function exportShield(query) {
  return request({
    url: '/biz/shield/export',
    method: 'get',
    params: query
  })
}